package com.blackhorse.stream.channel;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

//自定义消息通道
public interface MyProcessor {
    //自定义生产者配置
    String MYOUTPUT = "myoutput";

    @Output("myoutput")
    MessageChannel myoutput();

    //自定义生产者配置
    String MYINPUT = "myinput";

    @Input("myinput")
    SubscribableChannel myinput();
}
